+Fri Jan 25 14:03:36 2002 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkspinbutton.c (gtk_spin_button_draw_arrow): assert
+ that the passed in arrow is always _UP or _DOWN, this catches
+ false invocations which lead to drawing artefacts.
+ (start_spinning): likewise, i.e. sanity check the passed in arrow.
+ (gtk_spin_button_button_release): fix arrow redrawing.
+ (gtk_spin_button_button_press): must set click_child for
+ button3 even if we don't take spinning action right away.
+
+ * gtk/gtkspinbutton.h (struct _GtkSpinButton): document
+ valid values for click_child.
+
Thu Jan 24 23:03:24 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): update docs,
+Fri Jan 25 14:03:36 2002 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkspinbutton.c (gtk_spin_button_draw_arrow): assert
+ that the passed in arrow is always _UP or _DOWN, this catches
+ false invocations which lead to drawing artefacts.
+ (start_spinning): likewise, i.e. sanity check the passed in arrow.
+ (gtk_spin_button_button_release): fix arrow redrawing.
+ (gtk_spin_button_button_press): must set click_child for
+ button3 even if we don't take spinning action right away.
+
+ * gtk/gtkspinbutton.h (struct _GtkSpinButton): document
+ valid values for click_child.
+
Thu Jan 24 23:03:24 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): update docs,
+Fri Jan 25 14:03:36 2002 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkspinbutton.c (gtk_spin_button_draw_arrow): assert
+ that the passed in arrow is always _UP or _DOWN, this catches
+ false invocations which lead to drawing artefacts.
+ (start_spinning): likewise, i.e. sanity check the passed in arrow.
+ (gtk_spin_button_button_release): fix arrow redrawing.
+ (gtk_spin_button_button_press): must set click_child for
+ button3 even if we don't take spinning action right away.
+
+ * gtk/gtkspinbutton.h (struct _GtkSpinButton): document
+ valid values for click_child.
+
Thu Jan 24 23:03:24 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): update docs,
+Fri Jan 25 14:03:36 2002 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkspinbutton.c (gtk_spin_button_draw_arrow): assert
+ that the passed in arrow is always _UP or _DOWN, this catches
+ false invocations which lead to drawing artefacts.
+ (start_spinning): likewise, i.e. sanity check the passed in arrow.
+ (gtk_spin_button_button_release): fix arrow redrawing.
+ (gtk_spin_button_button_press): must set click_child for
+ button3 even if we don't take spinning action right away.
+
+ * gtk/gtkspinbutton.h (struct _GtkSpinButton): document
+ valid values for click_child.
+
Thu Jan 24 23:03:24 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): update docs,
+Fri Jan 25 14:03:36 2002 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkspinbutton.c (gtk_spin_button_draw_arrow): assert
+ that the passed in arrow is always _UP or _DOWN, this catches
+ false invocations which lead to drawing artefacts.
+ (start_spinning): likewise, i.e. sanity check the passed in arrow.
+ (gtk_spin_button_button_release): fix arrow redrawing.
+ (gtk_spin_button_button_press): must set click_child for
+ button3 even if we don't take spinning action right away.
+
+ * gtk/gtkspinbutton.h (struct _GtkSpinButton): document
+ valid values for click_child.
+
Thu Jan 24 23:03:24 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): update docs,
+Fri Jan 25 14:03:36 2002 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkspinbutton.c (gtk_spin_button_draw_arrow): assert
+ that the passed in arrow is always _UP or _DOWN, this catches
+ false invocations which lead to drawing artefacts.
+ (start_spinning): likewise, i.e. sanity check the passed in arrow.
+ (gtk_spin_button_button_release): fix arrow redrawing.
+ (gtk_spin_button_button_press): must set click_child for
+ button3 even if we don't take spinning action right away.
+
+ * gtk/gtkspinbutton.h (struct _GtkSpinButton): document
+ valid values for click_child.
+
Thu Jan 24 23:03:24 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): update docs,
+Fri Jan 25 14:03:36 2002 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkspinbutton.c (gtk_spin_button_draw_arrow): assert
+ that the passed in arrow is always _UP or _DOWN, this catches
+ false invocations which lead to drawing artefacts.
+ (start_spinning): likewise, i.e. sanity check the passed in arrow.
+ (gtk_spin_button_button_release): fix arrow redrawing.
+ (gtk_spin_button_button_press): must set click_child for
+ button3 even if we don't take spinning action right away.
+
+ * gtk/gtkspinbutton.h (struct _GtkSpinButton): document
+ valid values for click_child.
+
Thu Jan 24 23:03:24 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): update docs,
gint arrow_size;
g_return_if_fail (GTK_IS_SPIN_BUTTON (spin_button));
+ g_return_if_fail (arrow == GTK_ARROW_UP || arrow == GTK_ARROW_DOWN);
widget = GTK_WIDGET (spin_button);
spin_shadow_type = spin_button_get_shadow_type (spin_button);
GtkArrowType click_child,
gfloat step)
{
+ g_return_if_fail (click_child == GTK_ARROW_UP || click_child == GTK_ARROW_DOWN);
+
spin->click_child = click_child;
gtk_spin_button_real_spin (spin, click_child == GTK_ARROW_UP ? step : -step);
start_spinning (spin, GTK_ARROW_UP, spin->adjustment->step_increment);
else if (event->button == 2)
start_spinning (spin, GTK_ARROW_UP, spin->adjustment->page_increment);
+ else
+ spin->click_child = GTK_ARROW_UP;
}
else
{
start_spinning (spin, GTK_ARROW_DOWN, spin->adjustment->step_increment);
else if (event->button == 2)
start_spinning (spin, GTK_ARROW_DOWN, spin->adjustment->page_increment);
+ else
+ spin->click_child = GTK_ARROW_DOWN;
}
return TRUE;
}
click_child = spin->click_child;
spin->click_child = 2;
gtk_spin_button_draw_arrow (spin, click_child);
+
return TRUE;
}
else
GtkSpinButtonUpdatePolicy update_policy;
guint in_child : 2;
- guint click_child : 2;
+ guint click_child : 2; /* valid: GTK_ARROW_UP=0, GTK_ARROW_DOWN=1 or 2=NONE/BOTH */
guint button : 2;
guint need_timer : 1;
guint timer_calls : 3;